package com.example.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
public class Params {
    public static final String NAME = "name";
    public static final String USERNAME = "username";
    public static final String STUDENT_NAME = "studentName";
    public static final String TEACHER_NAME = "teacherName";
    public static final String PHONE = "phone";
    public static final String USER_ID = "userId";
    public static final String PAGE_NUM = "pageNum";
    public static final String PAGE_SIZE = "pageSize";

    @TableField(NAME)
    private String name;

    @TableField(USERNAME)
    private String username;

    @TableField(STUDENT_NAME)
    private String studentName;


    @TableField(TEACHER_NAME)
    private String teacherName;

    @TableField(PHONE)
    private String phone;

    @TableField(USER_ID)
    private Integer userId;

    @TableField(PAGE_NUM)
    private Integer pageNum;

    @TableField(PAGE_SIZE)
    private Integer pageSize;

    private String deviceSupport;

    private Integer type;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime endTime;


    private Integer id;

    private String userName;

    private String time;

    private String useTime;

    private Integer reserveStatus;

    private Integer useStatus;

    private Integer roomId;


    private Double totalPrice;


    private Integer payStatus;

    @JsonFormat(shape = JsonFormat.Shape.STRING)

    private String seatNum;

    private Long orderId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime paymentDeadline;
}